corner->border_width_2);
}
-typedef struct {
- StThemeNode *node;
- StCornerSpec *corner;
-} LoadCornerData;
-
static CoglHandle
load_corner (StTextureCache *cache,
const char *key,
void *datap,
GError **error)
{
- LoadCornerData *data = datap;
-
- return create_corner_material (data->corner);
+ return create_corner_material ((StCornerSpec *) datap);
}
/* To match the CSS specification, we want the border to look like it was
char *key;
StTextureCache *cache;
StCornerSpec corner;
- LoadCornerData data;
guint radius[4];
if (node->border_radius[corner_id] == 0)
return COGL_INVALID_HANDLE;
key = corner_to_string (&corner);
-
- data.node = node;
- data.corner = &corner;
- texture = st_texture_cache_load (cache, key, ST_TEXTURE_CACHE_POLICY_NONE, load_corner, &data, NULL);
+ texture = st_texture_cache_load (cache, key, ST_TEXTURE_CACHE_POLICY_NONE, load_corner, &corner, NULL);
material = _st_create_texture_material (texture);
cogl_handle_unref (texture);